//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.google.android.gms.ads;

import android.content.Context;
import android.support.annotation.RequiresPermission;
import android.util.AttributeSet;
import android.view.View;
import android.view.ViewGroup;

class BaseAdView extends ViewGroup {

    public BaseAdView(Context var1, int var2) {
        super(var1);
    }

    public BaseAdView(Context var1, AttributeSet var2, int var3) {
        super(var1, var2);
    }

    public BaseAdView(Context var1, AttributeSet var2, int var3, int var4) {
        super(var1, var2, var3);
    }

    public void destroy() {
    }

    public AdListener getAdListener() {
        return new AdListener();
    }

    public AdSize getAdSize() {
        return AdSize.BANNER;
    }

    public String getAdUnitId() {
        return "";
    }


    @RequiresPermission("android.permission.INTERNET")
    public void loadAd(AdRequest var1) {
    }

    public void pause() {
    }

    public void resume() {
    }

    public boolean isLoading() {
        return false;
    }

    public void setAdListener(AdListener var1) {
    }

    public void setAdSize(AdSize var1) {
    }

    public void setAdUnitId(String var1) {
    }

    protected void onLayout(boolean var1, int var2, int var3, int var4, int var5) {
        View var6 = this.getChildAt(0);
        if (var6 != null && var6.getVisibility() != 8) {
            int var7 = var6.getMeasuredWidth();
            int var8 = var6.getMeasuredHeight();
            int var9 = (var4 - var2 - var7) / 2;
            int var10 = (var5 - var3 - var8) / 2;
            var6.layout(var9, var10, var9 + var7, var10 + var8);
        }

    }

    protected void onMeasure(int var1, int var2) {
        int var3 = 0;
        int var4 = 0;
        View var5 = this.getChildAt(0);
        if (var5 != null && var5.getVisibility() != 8) {
            this.measureChild(var5, var1, var2);
            var3 = var5.getMeasuredWidth();
            var4 = var5.getMeasuredHeight();
        } else {
            AdSize var6 = null;

            try {
                var6 = this.getAdSize();
            } catch (NullPointerException var8) {
            }
        }

        var3 = Math.max(var3, this.getSuggestedMinimumWidth());
        var4 = Math.max(var4, this.getSuggestedMinimumHeight());
        this.setMeasuredDimension(View.resolveSize(var3, var1), View.resolveSize(var4, var2));
    }
}
